package org.jeecg.modules.exZbidOpeningArrange.service;

import org.jeecg.modules.exZbidOpeningArrange.entity.ExOpeningArrangeBiddingRoomRecord;
import org.jeecg.modules.exZbidOpeningArrange.entity.ExZbidChangdiandbd;
import org.jeecg.modules.exZbidOpeningArrange.entity.ExZbidOpeningArrange;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.exZbidOpeningArrange.vo.ExZbidOpeningArrangeParam;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 场地预约
 * @Author: jeecg-boot
 * @Date:   2024-08-31
 * @Version: V1.0
 */
public interface IExZbidOpeningArrangeService extends IService<ExZbidOpeningArrange> {

	/**
	 * 添加一对多
	 *
	 * @param exZbidOpeningArrange
	 * @param exZbidChangdiandbdList
	 */
	public void saveMain(ExZbidOpeningArrange exZbidOpeningArrange, List<ExZbidChangdiandbd> exZbidChangdiandbdList, List<ExOpeningArrangeBiddingRoomRecord> roomRecordList) ;
	
	/**
	 * 修改一对多
	 *
   * @param exZbidOpeningArrange
   * @param exZbidChangdiandbdList
	 */
	public void updateMain(ExZbidOpeningArrange exZbidOpeningArrange,List<ExZbidChangdiandbd> exZbidChangdiandbdList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

    boolean audit(ExZbidOpeningArrangeParam param);

	/**
	 * 获取预约信息
	 * @param sectionId
	 * @return
	 */
	ExZbidOpeningArrange getBySectionId(String sectionId);
}
